libxc/save: reuse send_dirty_pages() in send_all_pages()
authorYang Hongyang <yanghy@cn.fujitsu.com>
Thu, 14 May 2015 08:55:14 +0000 (16:55 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 14 May 2015 12:03:57 +0000 (13:03 +0100)
commit1238640c9e700819732d42c7e611f8dfa508eb60
tree3af2b442735425974ec418cc595ecce49ed261db
parente21361d30a15e02e757f1e48f06bb2eb6b32c995
libxc/save: reuse send_dirty_pages() in send_all_pages()

introduce bitmap_set() to set the entire bitmap.
in send_all_pages(), set the entire bitmap and call send_dirty_pages().

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
tools/libxc/xc_bitops.h
tools/libxc/xc_sr_save.c